home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / param10 / form1.frm < prev    next >
Text File  |  1995-08-23  |  6KB  |  219 lines

  1. VERSION 2.00
  2. Begin Form Form1 
  3.    Caption         =   "Line Up"
  4.    ClientHeight    =   3705
  5.    ClientLeft      =   2310
  6.    ClientTop       =   2175
  7.    ClientWidth     =   4755
  8.    Height          =   4110
  9.    Left            =   2250
  10.    LinkTopic       =   "Form1"
  11.    ScaleHeight     =   3705
  12.    ScaleWidth      =   4755
  13.    Top             =   1830
  14.    Width           =   4875
  15.    Begin JmParamCtl Paramctl1 
  16.       Left            =   3060
  17.       Top             =   600
  18.    End
  19.    Begin CommandButton Command1 
  20.       Caption         =   "&Edit"
  21.       Height          =   495
  22.       Left            =   2580
  23.       TabIndex        =   18
  24.       Top             =   2640
  25.       Width           =   1215
  26.    End
  27.    Begin Label Label9 
  28.       Caption         =   "RF"
  29.       Height          =   255
  30.       Left            =   120
  31.       TabIndex        =   17
  32.       Top             =   2880
  33.       Width           =   315
  34.    End
  35.    Begin Label Label8 
  36.       Caption         =   "CF"
  37.       Height          =   255
  38.       Left            =   120
  39.       TabIndex        =   16
  40.       Top             =   2565
  41.       Width           =   315
  42.    End
  43.    Begin Label Label7 
  44.       Caption         =   "LF"
  45.       Height          =   255
  46.       Left            =   120
  47.       TabIndex        =   15
  48.       Top             =   2250
  49.       Width           =   315
  50.    End
  51.    Begin Label Label6 
  52.       Caption         =   "SS"
  53.       Height          =   255
  54.       Left            =   120
  55.       TabIndex        =   14
  56.       Top             =   1935
  57.       Width           =   315
  58.    End
  59.    Begin Label Label5 
  60.       Caption         =   "3B"
  61.       Height          =   255
  62.       Left            =   120
  63.       TabIndex        =   13
  64.       Top             =   1620
  65.       Width           =   315
  66.    End
  67.    Begin Label Label4 
  68.       Caption         =   "2B"
  69.       Height          =   255
  70.       Left            =   120
  71.       TabIndex        =   12
  72.       Top             =   1305
  73.       Width           =   315
  74.    End
  75.    Begin Label Label3 
  76.       Caption         =   "1B"
  77.       Height          =   255
  78.       Left            =   120
  79.       TabIndex        =   11
  80.       Top             =   990
  81.       Width           =   315
  82.    End
  83.    Begin Label Label2 
  84.       Caption         =   "C"
  85.       Height          =   255
  86.       Left            =   120
  87.       TabIndex        =   10
  88.       Top             =   675
  89.       Width           =   315
  90.    End
  91.    Begin Label Label1 
  92.       Caption         =   "P"
  93.       Height          =   255
  94.       Left            =   120
  95.       TabIndex        =   9
  96.       Top             =   360
  97.       Width           =   315
  98.    End
  99.    Begin Label lblPlayer 
  100.       Caption         =   "Beecham"
  101.       Height          =   255
  102.       Index           =   8
  103.       Left            =   600
  104.       TabIndex        =   8
  105.       Top             =   2880
  106.       Width           =   1215
  107.    End
  108.    Begin Label lblPlayer 
  109.       Caption         =   "Klemperer"
  110.       Height          =   255
  111.       Index           =   7
  112.       Left            =   600
  113.       TabIndex        =   7
  114.       Top             =   2565
  115.       Width           =   1215
  116.    End
  117.    Begin Label lblPlayer 
  118.       Caption         =   "Monteux"
  119.       Height          =   255
  120.       Index           =   6
  121.       Left            =   600
  122.       TabIndex        =   6
  123.       Top             =   2250
  124.       Width           =   1215
  125.    End
  126.    Begin Label lblPlayer 
  127.       Caption         =   "Munch"
  128.       Height          =   255
  129.       Index           =   5
  130.       Left            =   600
  131.       TabIndex        =   5
  132.       Top             =   1935
  133.       Width           =   1215
  134.    End
  135.    Begin Label lblPlayer 
  136.       Caption         =   "Riener"
  137.       Height          =   255
  138.       Index           =   4
  139.       Left            =   600
  140.       TabIndex        =   4
  141.       Top             =   1620
  142.       Width           =   1215
  143.    End
  144.    Begin Label lblPlayer 
  145.       Caption         =   "Ormandy"
  146.       Height          =   255
  147.       Index           =   3
  148.       Left            =   600
  149.       TabIndex        =   3
  150.       Top             =   1320
  151.       Width           =   1215
  152.    End
  153.    Begin Label lblPlayer 
  154.       Caption         =   "Szell"
  155.       Height          =   255
  156.       Index           =   2
  157.       Left            =   600
  158.       TabIndex        =   2
  159.       Top             =   960
  160.       Width           =   1215
  161.    End
  162.    Begin Label lblPlayer 
  163.       Caption         =   "Nikisch"
  164.       Height          =   255
  165.       Index           =   1
  166.       Left            =   600
  167.       TabIndex        =   1
  168.       Top             =   675
  169.       Width           =   1215
  170.    End
  171.    Begin Label lblPlayer 
  172.       Caption         =   "Von Bulow"
  173.       Height          =   255
  174.       Index           =   0
  175.       Left            =   600
  176.       TabIndex        =   0
  177.       Top             =   360
  178.       Width           =   1215
  179.    End
  180. End
  181. Option Explicit
  182.  
  183. Sub Command1_Click ()
  184.     ReDim args(0 To 8) As String
  185.     Dim ii As Integer
  186.     For ii = LBound(args) To UBound(args)
  187.         args(ii) = lblPlayer(ii)
  188.     Next ii
  189.  
  190.     Dim rvalue As Long
  191.     rvalue = CallForm(Form2, 0, args())
  192.     Form2.Show 1
  193. End Sub
  194.  
  195. Sub Paramctl1_CallForm (CallType As Integer, ReturnValue As Long)
  196.     If CallType <> 1 Then
  197.         ' In this example 1 is the only call type.  You
  198.         ' can use the CallType parameter to specify different
  199.         ' functions to be performed in this event.
  200.         Exit Sub
  201.     End If
  202.  
  203.     Dim ii As Integer
  204.     For ii = 1 To Paramctl1.ArgCount
  205.         ' Don't let us get stuck with a black.
  206.         If Trim$(Paramctl1.Argument(ii)) <> "" Then
  207.             lblPlayer(ii - 1) = Paramctl1.Argument(ii)
  208.         Else
  209.             ' By updating the value of Argument () then
  210.             ' new value is returned to the caller.  In
  211.             ' this example the call gets told that the
  212.             ' value that get passed is no good and a
  213.             ' valid value is returned.
  214.             Paramctl1.Argument(ii) = lblPlayer(ii - 1)
  215.         End If
  216.     Next ii
  217. End Sub
  218.  
  219.